import { useState } from "react";

export default function Demo7() {

  let [count, setCount] = useState<number>(0);

  return (
    <div>
      <button onClick={() => setCount(count + 1)}>{"点击我"}</button>
      <span>{count}</span>
    </div>
  );
}